<template>
	<view class="currency_info DiseaseConditionBox" v-if="data">
		<view class="Card_Disease_condition" v-if="data&&data.height">
			<view class="title">
				<text>·</text> 身高/体重
			</view>
			<view class="text">
				{{data.height}}cm/{{data.weight}}kg
			</view>
		</view>
		<view class="Card_Disease_condition" v-if="data.morbidityTime">
			<view class="title">
				<text>·</text> 发病时间
			</view>
			<view class="text">
				<uni-dateformat :date="data.morbidityTime" format="yyyy-MM-dd hh:mm"></uni-dateformat>
			</view>
		</view>
		<view class="Card_Disease_condition" v-if="data.diseaseDescribe">
			<view class="title">
				<text>·</text> 您觉得现在最主要的不适是什么，请详细描述？
			</view>
			<view class="text">
				{{data.diseaseDescribe}}
			</view>
		</view>
		<view class="Card_Disease_condition" v-if="data.otherDiscomforts">
			<view class="title">
				<text>·</text> 您发病时伴随哪些不适症状？
			</view>
			<view class="text">
				{{data.otherDiscomforts}}
			</view>
		</view>
		<view class="Card_Disease_condition" v-if="data.hospitalName">
			<view class="title">
				<text>·</text> 本次生病是否去医院就诊过？哪家医院？
			</view>
			<view class="text">
				{{data.hospitalIf==1?'是':'否'}}- {{data.hospitalName}}
			</view>
		</view>
		<view class="Card_Disease_condition" v-if="data.medicationIf">
			<view class="title">
				<text>·</text> 当前是否有正在使用的药物？
			</view>
			<view class="text">
				{{data.medicationIf==1?'是':'否'}}
			</view>
		</view>
		<view class="Card_Disease_condition" v-if="data.radiotherapyIf">
			<view class="title">
				<text>·</text> 是否有过手术放化疗等重大疾病或慢性史？
			</view>
			<view class="text">
				{{data.radiotherapyIf==1?'是':'否'}}
			</view>
		</view>
		<!-- <view class="Card_Disease_condition">
			<view class="title">
				<text>·</text> 是否有药物过敏史？
			</view>
			<view class="text">
				否
			</view>
		</view> -->
		<view class="Card_Disease_condition" v-if="data.attachment">
			<view class="title">
				<text>·</text> 请上传能反应患者病情的相关资料
			</view>
			<view class="text">
				<!-- attachment -->
				<image src="@/static/ConsultationRoom/tx.png" mode=""></image>
				<image src="@/static/ConsultationRoom/tx.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ["data"],
		data() {
			return {

			};
		}
	}
</script>

<style lang="less" scoped>
	.DiseaseConditionBox {
		width: 100%;
		margin-top: 20rpx !important;
		padding-top: 30rpx;
		background: #FAFAFA;
		border-radius: 10rpx;

		.Card_Disease_condition {
			font-size: 28rpx;
			margin-bottom: 15rpx;
			color: #333333;

			.title {
				color: #999999;
				margin-bottom: 12rpx;

				text {
					width: 40rpx;
					display: inline-block;
					text-align: center;
				}
			}

			.text {
				margin-left: 40rpx;

				image {
					width: 113rpx;
					height: 113rpx;
					border-radius: 5rpx;
					margin-right: 25rpx;
				}
			}

		}
	}
</style>